package com.mxl.dao.cashorder.impl;

import org.hibernate.criterion.Restrictions;

import com.mxl.dao.cashorder.model.GatewayTransferCardOrder;
import com.mxl.datebase.orm.hibernate.BaseDaoSupport;

public class GatewayTransferCardOrderDaoImpl extends
		BaseDaoSupport<GatewayTransferCardOrder, Long> {

	/**
	 * 最好在余额上建立约束 必须大于0
	 * 
	 * @param cardNo
	 * @param cardPwd
	 * @return
	 */
	public GatewayTransferCardOrder queryBla(String cardNo, String cardPwd) {
		return this.findUnique(Restrictions.eq("cardNo", cardNo),
				Restrictions.eq("cardPwd", cardPwd),
				Restrictions.eq("isFrozen", 0));
	}
}
